package com.ruoyi.report.service.impl;

import com.ruoyi.report.domain.report.ReportParam;
import com.ruoyi.report.mapper.ReportParamMapper;
import com.ruoyi.report.service.IReportParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 报告检测项目数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-29
 */
@Service
public class ReportParamServiceImpl implements IReportParamService
{
    @Autowired
    private ReportParamMapper reportParamMapper;

    /**
     * 查询报告检测项目数据
     * 
     * @param reportNum 报告检测项目数据主键
     * @return 报告检测项目数据
     */
    @Override
    public List<ReportParam> selectReportParamByReportNum(String reportNum)
    {
        return reportParamMapper.selectReportParamByReportNum(reportNum);
    }

    /**
     * 查询报告检测项目数据列表
     * 
     * @param reportParam 报告检测项目数据
     * @return 报告检测项目数据
     */
    @Override
    public List<ReportParam> selectReportParamList(ReportParam reportParam)
    {
        return reportParamMapper.selectReportParamList(reportParam);
    }

    /**
     * 新增报告检测项目数据
     * 
     * @param reportParam 报告检测项目数据
     * @return 结果
     */
    @Override
    public int insertReportParam(ReportParam reportParam)
    {
        return reportParamMapper.insertReportParam(reportParam);
    }

    /**
     * 批量新增检测项目数据
     * @param reportParams
     * @return
     */
    @Override
    public int insertReportParams(List<ReportParam> reportParams) {
        return reportParamMapper.insertReportParams(reportParams);
    }

    /**
     * 修改报告检测项目数据
     * 
     * @param reportParam 报告检测项目数据
     * @return 结果
     */
    @Override
    public int updateReportParam(ReportParam reportParam)
    {
        return reportParamMapper.updateReportParam(reportParam);
    }

    /**
     * 批量删除报告检测项目数据
     * 
     * @param reportNums 需要删除的报告检测项目数据主键
     * @return 结果
     */
    @Override
    public int deleteReportParamByReportNums(String[] reportNums)
    {
        return reportParamMapper.deleteReportParamByReportNums(reportNums);
    }

    /**
     * 删除报告检测项目数据信息
     * 
     * @param reportNum 报告检测项目数据主键
     * @return 结果
     */
    @Override
    public int deleteReportParamByReportNum(String reportNum)
    {
        return reportParamMapper.deleteReportParamByReportNum(reportNum);
    }
}
